package com.yungu.swift.report.service.impl;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.base.model.admin.AdminReportParam;
import com.yungu.swift.report.base.service.impl.BaseServiceImpl;
import com.yungu.swift.report.dao.ReportOrderNumDayDao;
import com.yungu.swift.report.entity.ReportOrderNumDay;
import com.yungu.swift.report.service.OrderNumDayService;
import com.yungu.swift.utils.DateUtils;
import com.yungu.swift.utils.MapUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;

@Service
public class OrderNumDayServiceImpl extends BaseServiceImpl<ReportOrderNumDay> implements OrderNumDayService {

    @Autowired
    private ReportOrderNumDayDao orderNumDayDao;

    @Override
    public IMapper<ReportOrderNumDay> getMapper() {
        return orderNumDayDao;
    }

    @Override
    public ResponseData<List<ReportOrderNumDay>> queryIndex(AdminReportParam reportParam) {
        return ResponseData.buildSuccessResponse(orderNumDayDao.queryIndex(reportParam));
    }
}
